home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
VI5.ARJ
/
VIDEMO.EXE
/
SAMPLE1.PRG
< prev
next >
Wrap
Text File
|
1992-01-21
|
790b
|
27 lines
************************************************************************
* SAMPLE1.PRG Peter M. Freese
* 1/20/92 Pinnacle Publishing, Inc.
*
* Source code demonstration of Push Button class
************************************************************************
#include "vi.ch"
#include "inkey.ch"
FUNCTION Sample1()
LOCAL oWin,oPB
// create a window
oWin := VWindowNew(12,20,27,60,0,WS_DOUBLEBORDER+WS_TITLE,;
HIWHITE,GREEN,"Push Button Class")
// create push button control
oPB := VPushButtonNew(oWin,K_ALT_B,4,10,8,30,0,BLACK,WHITE,;
"&Beep me")
// assign an action to the push button
oPB:action := { || TONE(2000,5) }
// return window object to calling routine
RETURN oWin